-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add between_layers to calculate_resistance, and set to False #386
Conversation
nlmod/dims/layers.py
Outdated
If True, calculate the resistance between the layers, which MODFLOW uses to | ||
calculate the flow. The resistance between two layers is then assigned to the | ||
top layer, and the bottom model layer gets a resistance of infinity. | ||
If False, calculate the resistance of the layers themselves. The defauls is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: default
nlmod/dims/layers.py
Outdated
conductivity (kv) and the thickness. The resistance between two layers is assigned | ||
to the top layer. The bottom model layer gets a resistance of infinity. | ||
def calculate_resistance( | ||
ds, kv="kv", thickness="thickness", top="top", botm="botm", between_layers=False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe set to None, warn users that to get the default they need to set between_layers=False, and the future default will be True?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
Test fail unrelated to this PR |
Solves issue #310. This PR changes the outcome of
calculate_resistance
, whenbetween_layers
is set to False. This will be the new default in the future as well. Whenbetween_layers
is not specified (which is the default), the user will see the following warning:The default of between_layers=True in calculate_resistance is deprecated and will be changed to False in a future version of nlmod. Pass between_layers=True to retain current behavior or between_layers=False to adopt the future default and silence this warning.